package com.example4.test5;

/**
 * @Auther: shiquan
 * @Date: 2024/10/16 - 10 - 16 -11:58
 */
public class Car {

      //需求 创建三个商品对象  并且把对象存到数组里面  键盘输入
    private String brand;
    private int price;
    private String color ; //

    public Car() {
    }

    public Car(String brand, int price, String color) {
        this.brand = brand;
        this.price = price;
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
